package com.cd.javacxy.module.web.service;

import com.cd.javacxy.common.model.entity.CxyExam;
import com.cd.javacxy.common.model.query.ExamQuery;
import com.cd.javacxy.common.utils.PageResult;
import com.cd.javacxy.exception.BussinessException;

import java.util.List;

/**
 * CxyExam的服务接口
 *
 * @author yanghy
 */
public interface CxyExamService {

    PageResult<CxyExam> findExamUsers(ExamQuery examQuery);

    int saveExam(CxyExam exam, String[] answer, Integer[] rightAnswer) throws BussinessException;

    List<CxyExam> findExamListRand(Integer categoryId) throws BussinessException;

    List<CxyExam> doMark(String examIds, String rightAnswers) throws BussinessException;
}
